<%= form_for @game do |f| %>

<%if @game.errors.any?%>
	<div id="error_explanation">
	  <h2><%= pluralize(@game.errors.count, "error") %> prohibited this game from being saved:</h2>
	    <ul>
	      <% @game.errors.full_messages.each do |msg| %>
	        <li><%= msg %></li>
	      <% end %>
	    </ul>
	</div>
<% end %>

<div class="field">
	<%= f.label :name%></br>
	<%= f.text_field :name%>
 </div>

 <div class="field">
	 <%= f.label :blind%></br>
   <%= f.select :blind, (1..10) %>
 </div>

  <div class="actions">
    <%= f.submit "Create game",:class => 'btn btn-primary' %>
  </div>

 <% end %>